<form id="pagerForm" action="__URL__/index" method="post">
    <include file="Public/pagerForm" />
    <input type="hidden" name="auth" value="{$paramter['auth']}"/>
    <input type="hidden" name="username" value="{$paramter['username']}"/>
    <input type="hidden" name="nickname" value="{$paramter['nickname']}"/>
</form>

<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="__URL__/index" method="post">
        <div class="searchBar">
            <ul class="searchContent">
	            <li>
	                <label>群组：</label>
	                <select name="auth">
	                    <option value="0">请选择</option>
                        <volist name="roleList" id="volist">
						<if condition="$volist['id'] == $paramter['auth']">
                            <option value="{$volist['id']}" selected="selected">{$volist['title']}</option>
						<else />
							<option value="{$volist['id']}">{$volist['title']}</option>
						</if>
                        </volist>
	                </select>
	            </li>
	            <li>
	                <label>账号名：</label>
					<input type="text" name="username" value="{$paramter['username']}" class="width_100" />
				</li>
	            <li>
	                <label>职权描述：</label>
					<input type="text" name="nickname" value="{$paramter['nickname']}" class="width_100" />
				</li>
	        </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <i class="iconfont">&#xe633;</i>
                                <button type="submit">搜索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>

<div class="pageContent">
    <div class="panelBar" style="background:none;">
        <ul class="toolBar">
            <li>
                <a href="__URL__/add" class="add" rel="add" target="dialog" title="添加管理员">
                    <i class="iconfont">&#xe601;</i>
                    <span>添加</span>
                </a>
            </li>
            <li>
                <a href="__URL__/edit/id/{sid_user}" class="edit" rel="edit" target="dialog" title="编辑管理员">
                    <i class="iconfont">&#xe607;</i>
                    <span>编辑</span>
                </a>
            </li>
            <li>
                <a href="__URL__/pass_edit/id/{sid_user}" class="password" rel="edit" target="dialog" title="修改密码">
                    <i class="iconfont">&#xe605;</i>
                    <span>改密</span>
                </a>
            </li>
            <li>
                <a class="delete" href="__URL__/remove" target="selectedTodo" rel="id" posttype="string" title="你确定要批量删除吗？">
                    <i class="iconfont">&#xe612;</i>
                    <span>删除</span>
                </a>
            </li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="206">
        <thead>
            <tr>
				<th width="3%" class="txtMid">
					<input type="checkbox" group="id" class="checkboxCtrl">
				</th>
				<th width="5%">编号</th>
				<th width="10%">账号名</th>
				<th width="20%">职权描述</th>
				<th width="10%">所属群组</th>
				<!--<th width="10%">店铺logo</th>-->
				<th width="10%">创建时间</th>
				<th width="10%">最后登录时间</th>
				<th width="10%">最后登录IP</th>
				<th width="5%">状态</th>
				<th width="7%">操作</th>
			</tr>
        </thead>
        <tbody>
        <if condition="$dataList|count gt 0">
        <volist name="dataList" id="volist">
            <tr target="sid_user" rel="{$volist['id']}" >
                <td class="txtMid">
                	<input name="id" value="{$volist['id']}" type="checkbox">
				</td>
                <td>{:( $page['pageNum'] - 1 ) * $page['numperpage'] + ( $key + 1 )}</td>
                <td>{$volist['username']}</td>
                <td>{$volist['nickname']}</td>
                <td>{$volist['auth_title']}</td>
                <!--<td>
                    <if condition="$volist['picture'] neq ''">
                       <a href="__ROOT__{$volist['picture']}" target="_blank" rel="example_group">
	                    <img src="__ROOT__{$volist['picture']}" height="20" />
                       </a>
                    <else />
                       无
                    </if>
                </td>-->
                <td>{$volist['create_time']|date='Y-m-d H:i:s',###}</td>
                <td>
                <if condition="$volist['last_login_time'] eq 0">
					暂无
				<else />
                	{$volist['last_login_time']|date='Y-m-d H:i:s',###}
				</if>
				</td>
                <td>{$volist['last_login_ip']?long2ip($volist['last_login_ip']):'暂无'}</td>
                <td>
	                <if condition="$volist.status eq 0">
	                	<img src="__IMAGES__/ok.png" />
	                <else />
	                	<img src="__IMAGES__/error.png" />
	                </if>
                </td>
                <td>
                    <if condition="$volist['status'] eq 1">
						<a href="__URL__/commSetStatus/id/{$volist['id']}/param/status-0" target="ajaxTodo" class="color_red">[恢复]</a>
                    <else />
						<a href="__URL__/commSetStatus/id/{$volist['id']}/param/status-1" target="ajaxTodo" class="alink1">[禁用]</a>
					</if>
                </td>
            </tr>
        </volist>
        <else />
            <tr><td colspan="10" style="text-align:center;">没有数据!!!</td></tr>
        </if>
        </tbody>
    </table>
    <include file="Public/pagination" />
</div>